
const lists = '{"code":"200","msg":"OK","data":[{"menuId":1,"title":"系统设置","perms":"system","type":0,"icon":"ge","isLock":false,"orderNum":0,"children":[{"menuId":2,"title":"菜单管理","perms":"system:menu","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/menu","icon":"th-list","isLock":false,"orderNum":0},{"menuId":3,"title":"字典管理","perms":"system:dict","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/dict","icon":"file-word-o","isLock":false,"orderNum":0},{"menuId":4,"title":"路由菜单","perms":"system:router","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/router","icon":"arrows","isLock":false,"orderNum":0}]}]}'
const info1 = '{"code":"200","msg":"OK","data":{"menuId":1,"title":"系统设置","perms":"system","type":0,"icon":"ge","isLock":false,"orderNum":0,"children":[{"menuId":2,"title":"菜单管理","perms":"system:menu","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/menu","icon":"th-list","isLock":false,"orderNum":0},{"menuId":3,"title":"字典管理","perms":"system:dict","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/dict","icon":"file-word-o","isLock":false,"orderNum":0},{"menuId":4,"title":"路由菜单","perms":"system:router","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/router","icon":"arrows","isLock":false,"orderNum":0}]}}'
const info2 = '{"code":"200","msg":"OK","data":{"menuId":2,"title":"菜单管理","perms":"system:menu","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/menu","icon":"th-list","isLock":false,"orderNum":0}}'
const tree = '{"code":"200","msg":"OK","data":[{"title":"Root","children":[{"menuId":1,"title":"系统设置","perms":"system","type":0,"icon":"ge","isLock":false,"orderNum":0,"children":[{"menuId":2,"title":"菜单管理","perms":"system:menu","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/menu","icon":"th-list","isLock":false,"orderNum":0},{"menuId":3,"title":"字典管理","perms":"system:dict","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/dict","icon":"file-word-o","isLock":false,"orderNum":0},{"menuId":4,"title":"路由菜单","perms":"system:router","type":1,"parentId":1,"parentName":"系统设置","path":"/sys/router","icon":"arrows","isLock":false,"orderNum":0}]}]}]}'

export default [
  {
    path: '/api/system/userperm/list',
    method: 'get',
    handle () {
      return JSON.parse(lists)
    }
  },
  {
    path: '/api/system/userperm/selectTree',
    method: 'get',
    handle () {
      return JSON.parse(tree)
    }
  },
  {
    path: '/api/system/userperm/info/1',
    method: 'get',
    handle () {
      return JSON.parse(info1)
    }
  },
  {
    path: '/api/system/userperm/info/2',
    method: 'get',
    handle () {
      return JSON.parse(info2)
    }
  },
  {
    path: '/api/system/userperm/info/3',
    method: 'get',
    handle () {
      return JSON.parse(info2)
    }
  },
  {
    path: '/api/system/userperm/info/4',
    method: 'get',
    handle () {
      return JSON.parse(info2)
    }
  }
]
